package com.hello.web.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hello.common.domain.entity.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * 角色表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("t_role")
@Entity(name = "t_role")
@Table(
        name = "t_role",
        uniqueConstraints = {
                @UniqueConstraint(columnNames = "name")
        }
)
@org.hibernate.annotations.Table(appliesTo = "t_role", comment = "角色表")
public class RoleDO extends BaseDO {

    @ApiModelProperty(value = "角色名称")
    private String name;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态 0：禁用 1：启用")
    private Integer status;

}